Skip to content

OpenBot Mobile: Share details under an error, and Report a problem in Account - #2718

Merged
tylerslaton merged 4 commits into
mobilefrom
mobile-copy-details
Dec 2, 2026
Merged

tylerslaton merged 4 commits into
mobilefrom
mobile-copy-details

Conversation

@tylerslaton

@tylerslaton tylerslaton commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Why

In #openbot-dogfooding, Travis hit a red "fetch failed" on iOS that disappeared before he could capture it, and asked how to get logs off the phone. The app had no way to do that. This adds the "Copy details" option agreed in that thread (Mark: it's what most SAP mobile apps ended up with after trying diagnostic upload APIs).

What

  • Every red notice (Notice with tone="danger", 52 call sites, no per-screen changes) shows Share details under its message. details={false} turns it off for a notice that doesn't need it.
  • A reply that stopped before it finished shows Share details under it, with the run ID (a live failure) or the message ID (a stored one).
  • Account → Report a problem shares the same report without an error, for something that went wrong without showing one.

The report (src/error-details.ts) is plain text:

Error: fetch failed
Screen: /conversation
Conversation: conv_…
Bot: agent_…
Run: run_…
OpenBot: 1.2.4
App: 1.2.4 (57)
Update: <EAS update id, when not the embedded bundle>
Phone: iPhone Duo, ios 27.2.1
Server: https://…
When: 2026-12-01T23:51:55.000Z

No user content. The screen's address keeps only known ID parameters (channelId, botId, agentId, routineId, requestId, appId). It drops the rest, which can carry a draft message or a sign-in code. A stored failed reply contributes its reason, not its text, which can hold the start of the Bot's reply. No tokens or keys are in reach.

Share sheet, not clipboard. The app has no clipboard module, and adding expo-clipboard would change the native fingerprint and need a store build. React Native's Share is already used in the app (bot-reach, bot-sharing). It offers Copy, and Slack or Mail directly, and it reaches installed phones through EAS Update.

No API or database change.

Checks

  • bun test mobile/tests/error-details.test.ts: 3 pass (the report's exact shape, nothing beyond the ID parameters leaves the address, and a report with no error)
  • bun test mobile/tests: same results as origin/mobile. The 2 errors are a missing zod in a fresh checkout and happen without this change.
  • tsc --noEmit in mobile/: passes
  • biome check on the changed files: clean, except conversation.tsx's import order, which is already on origin/mobile

Screenshots

Not yet. A fresh dev-client build of origin/mobile crashes at launch on the spare iOS 27.2 simulators (react-native-worklets: Cannot read property 'loadUnpackersWithCode' of undefined, and Cannot find native module 'ExpoUI'). That happens without this change, so it's the environment. Screenshots will follow in a comment.

Changelog

Before upgrading.

  • GET /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId} query actions: send the actions in a body with readBotApp instead. Sunset 2027-12-02.
  • GET /api/v2/organizations/{organizationId}/people/{personId}/recording-titles: send the ids in a body with readRecordingTitles instead. Sunset 2027-12-02.

OpenBot Mobile.

  • OpenBot Mobile: Share details under an error, and Report a problem in Account. Every red notice, and a reply that stopped before it finished, offers Share details: what went wrong, the screen, the conversation, the Bot, the run and the app's version, with nothing anybody wrote, through the phone's share sheet. Account has Report a problem, which shares the same details with no error.

🤖 Generated with Claude Code

… Account

An error on the phone can now be sent to us. Every red notice and every
reply that stopped offers "Share details": the phone's share sheet with
the error, the screen and the ids it was opened with, the run or message,
the OpenBot release, app build and update, the phone and iOS version, the
server and the time. Account's "Report a problem" shares the same without
an error. Nothing anybody wrote is in it: a screen's address keeps only
its ids, and a stored failed reply gives its reason, not its text.

It uses React Native's Share, so it needs no new native module and
reaches installed apps in an update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tylerslaton and others added 3 commits December 2, 2026 13:15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hem (#2814)

v1.2.8, released today, first served getBotApp's actions and
getRecordingTitles deprecated with x-sunset 2027-12-01, 364 days out, so
CI's support-window check failed every pull request into mobile. Both
move to 2027-12-02, as main moved them in #2814; merging main into
mobile later finds the same lines. The workflow part of #2814 is left
for that merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tylerslaton
tylerslaton merged commit 9a8c199 into mobile Dec 2, 2026
43 checks passed
@tylerslaton
tylerslaton deleted the mobile-copy-details branch December 2, 2026 21:53
tylerslaton added a commit that referenced this pull request Dec 3, 2026
… Account (#2718)

* OpenBot Mobile: Share details under an error, and Report a problem in Account

An error on the phone can now be sent to us. Every red notice and every
reply that stopped offers "Share details": the phone's share sheet with
the error, the screen and the ids it was opened with, the run or message,
the OpenBot release, app build and update, the phone and iOS version, the
server and the time. Account's "Report a problem" shares the same without
an error. Nothing anybody wrote is in it: a screen's address keeps only
its ids, and a stored failed reply gives its reason, not its text.

It uses React Native's Share, so it needs no new native module and
reaches installed apps in an update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* API: the two 1.2.8 deprecations sunset a full year out, as main has them (#2814)

v1.2.8, released today, first served getBotApp's actions and
getRecordingTitles deprecated with x-sunset 2027-12-01, 364 days out, so
CI's support-window check failed every pull request into mobile. Both
move to 2027-12-02, as main moved them in #2814; merging main into
mobile later finds the same lines. The workflow part of #2814 is left
for that merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant